package cn.hill4j.tool.spring.ext.feign.wrap;

import feign.Request;
import feign.RequestTemplate;
import feign.Target;
import org.springframework.cloud.openfeign.WrapUrlTargeter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;
import java.util.function.Supplier;

/**
 * ClassName: DymTarget
 * Description: TODO
 *
 * @author hillchen
 * Date: 2023年08月13日
 * @version: 1.0
 */
@Configuration
public class WrapFeignConfig {
    @Resource
    private FeignUrlSupplier feignUrlSupplier;

    @Bean
    public WrapUrlTargeter wrapUrlTargeter() {
        return new WrapUrlTargeter(feignUrlSupplier);
    }

}
